import useLocalStorage from "."

const LocalstorageComponent = () => {
  const [value, setValue] = useLocalStorage('react-hook', new Date().toLocaleDateString());

  setTimeout(() => {
    setValue('2023/5/8')
  }, 5000)

  return (
    <div>
      value: { value }
    </div>
  )
}

export default LocalstorageComponent;